home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / INSTALL.TXT < prev    next >
Text File  |  1997-04-30  |  58KB  |  1,399 lines

  1.   The Linux Installation HOWTO
  2.   by Matt Welsh, mdw@sunsite.unc.edu
  3.   v3.0, 30 June 1994
  4.   Updated by Patrick Volkerding for Slackware version 3.5.0.
  5.  
  6.   This document describes how to obtain and install the Linux software,
  7.   focusing on the popular Slackware distribution (version 3.5.0). It is
  8.   the first document which a new Linux user should read to get started.
  9.  
  10.   1.  Introduction
  11.  
  12.   Linux is a freely-distributable implementation of UNIX for 386, 486,
  13.   Pentium, and compatible machines.  It supports a wide range of software,
  14.   including X Windows, Emacs, TCP/IP networking (including SLIP/PPP), the
  15.   works.  This document assumes that you have heard of and know about Linux,
  16.   and just want to sit down and install it.
  17.  
  18.  
  19.  
  20.   1.1.  Other sources of information
  21.  
  22.   If you have never heard of Linux before, there are several sources of
  23.   basic information about the system. One is the Linux Frequently Asked
  24.   Questions list (FAQ), available from
  25.   sunsite.unc.edu:/pub/Linux/docs/FAQ. This document contains many
  26.   common questions (and answers!) about Linux---it is a ``must read''
  27.   for new users.
  28.  
  29.   In the directory /pub/Linux/docs on sunsite.unc.edu you'll find a
  30.   number of other documents about Linux, including the Linux INFO-SHEET
  31.   and META-FAQ, both of which you should read.  Also take a look at the
  32.   USENET newsgroups comp.os.linux.help and comp.os.linux.announce.
  33.  
  34.   Another source of online Linux documentation is the Linux HOWTO
  35.   archive, on sunsite.unc.edu:/pub/Linux/docs/HOWTO. The file HOWTO-
  36.   INDEX in that directory explains what Linux HOWTOs are available.
  37.  
  38.   The Linux Documentation Project is writing a set of manuals and books
  39.   about Linux, all of which are freely distributable on the net.  The
  40.   directory /pub/Linux/docs/LDP on sunsite.unc.edu contains the current
  41.   set of LDP manuals.
  42.  
  43.   The book ``Linux Installation and Getting Started'' is a complete
  44.   guide to getting and installing Linux, as well as how to use the
  45.   system once you've installed it. It contains a complete tutorial to
  46.   using and running the system, and much more information than is
  47.   contained here. This HOWTO is simply a condensation of some of the
  48.   most important information in that book. You can get ``Linux
  49.   Installation and Getting Started'' from sunsite.unc.edu in
  50.   /pub/Linux/docs/LDP/install-guide.  The README file there describes
  51.   how you can order a printed copy of the book (about 180 pages).
  52.  
  53.  
  54.  
  55.   1.2.  New versions of this document
  56.  
  57.   New versions of the Linux Installation HOWTO will be periodically
  58.   posted to comp.os.linux.announce, comp.os.linux, and news.answers.
  59.   They will also be uploaded to various Linux FTP sites, including
  60.   sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  61.  
  62.  
  63.  
  64.   1.3.  Feedback
  65.  
  66.   If you have questions or comments about this document, please feel
  67.   free to mail Matt Welsh, at mdw@sunsite.unc.edu. I welcome any
  68.   suggestions, criticism, or postcards. If you find a mistake with this
  69.   document, please let me know so I can correct it in the next version.
  70.   Thanks.
  71.  
  72.  
  73.   2.  Hardware Requirements
  74.  
  75.   What kind of system is needed to run Linux? This is a good question;
  76.   the actual hardware requirements for the system change periodically.
  77.   The Linux Hardware-HOWTO gives a (more or less) complete listing of
  78.   hardware supported by Linux. The Linux INFO-SHEET provides another
  79.   list.
  80.  
  81.   At the very least, a hardware configuration that looks like the
  82.   following is required:
  83.  
  84.   Any ISA, EISA or VESA Local Bus 80386 or 80486 system will do.
  85.   Currently, the MicroChannel (MCA) architecture (found on IBM PS/2
  86.   machines) is not supported.  Any CPU from the 386SX to the 486DX2 will
  87.   work. You do not need a math coprocessor, although it is nice to have
  88.   one.
  89.  
  90.   You need at least 4 megabytes of memory in your machine. Technically,
  91.   Linux will run with only 2 megs, but most installations and software
  92.   require 4. The more memory you have, the happier you'll be. I suggest
  93.   8 or 16 megabytes if you're planning to use X-Windows.
  94.  
  95.   Of course, you'll need a hard drive and an AT-standard drive
  96.   controller. All MFM, RLL, and IDE drives and controllers should work.
  97.   Many SCSI drives and adaptors are supported as well; the Linux SCSI-
  98.   HOWTO contains more information on SCSI.
  99.  
  100.   Linux can actually run on a single 5.25" HD floppy, but that's only
  101.   useful for installation and maintenance.
  102.  
  103.   Free space on your hard drive is needed as well. The amount of space
  104.   needed depends on how much software you plan to install. Most
  105.   installations require somewhere in the ballpark of 40 to 80 megs.
  106.   This includes space for the software, swap space (used as virtual RAM
  107.   on your machine), and free space for users, and so on.
  108.  
  109.   It's conceivable that you could run a minimal Linux system in 20 megs
  110.   or less, and it's conceivable that you could use well over 200 megs or
  111.   more for all of your Linux software. The amount varies greatly
  112.   depending on the amount of software you install and how much space you
  113.   require. More about this later.
  114.  
  115.   Linux will co-exist with other operating systems, such as MS-DOS,
  116.   Microsoft Windows, or OS/2, on your hard drive. (In fact you can even
  117.   access MS-DOS files and run some MS-DOS programs from Linux.)  In
  118.   other words, when partitioning your drive for Linux, MS-DOS or OS/2
  119.   live on their own partitions, and Linux exists on its own. We'll go
  120.   into more detail later.
  121.  
  122.   You do NOT need to be running MS-DOS, OS/2, or any other operating
  123.   system to use Linux. Linux is a completely different, stand-alone
  124.   operating system and does not rely on other OS's for installation and
  125.   use.
  126.  
  127.   You also need a Hercules, CGA, EGA, VGA, or Super VGA video card and
  128.   monitor.  In general, if your video card and monitor work under MS-DOS
  129.   then it should work under Linux. However, if you wish to run X
  130.   Windows, there are other restrictions on the supported video hardware.
  131.   The Linux XFree86-HOWTO contains more information about running X and
  132.   its requirements.
  133.  
  134.   In all, the minimal setup for Linux is not much more than is required
  135.   for most MS-DOS or MS Windows systems sold today. If you have a 386 or
  136.   486 with at least 4 megs of RAM, then you'll be happy running Linux.
  137.   Linux does not require huge amounts of diskspace, memory, or processor
  138.   speed. I (used to) run Linux on a 386/16 MHz (the slowest machine you
  139.   can get) with 4 megs of RAM, and was quite happy. The more you want to
  140.   do, the more memory (and faster processor) you'll need. In my
  141.   experience a 486 with 16 megabytes of RAM running Linux outdoes
  142.   several models of workstation.
  143.  
  144.  
  145.  
  146.   3.  Getting Linux
  147.  
  148.   In this section we'll cover how to obtain the Linux software.
  149.  
  150.  
  151.   3.1.  Linux Distributions
  152.  
  153.   Before you can install Linux, you need to decide on one of the
  154.   ``distributions'' of Linux which are available. There is no single,
  155.   standard release of the Linux software---there are many such releases.
  156.   Each release has its own documentation and installation instructions.
  157.  
  158.   Linux distributions are available both via anonymous FTP and via mail
  159.   order on diskette, tape, and CD-ROM. The Linux Distribution HOWTO (see
  160.   sunsite.unc.edu in the file /pub/Linux/docs/HOWTO/Distribution-HOWTO)
  161.   includes a list of many Linux distributions available via FTP and mail
  162.   order. 
  163.  
  164.   The release of Linux covered in this HOWTO is the Slackware
  165.   distribution, maintained by Patrick J. Volkerding
  166.   (volkerdi@mhd1.moorhead.msus.edu). It is one of the most popular
  167.   distributions available; it is very up-to-date and includes a good
  168.   amount of software including X-Windows, TeX, and others.  The
  169.   Slackware distribution consists of a number of ``disk sets'', each one
  170.   containing a particular type of software (for example, the d disk set
  171.   contains development tools such as the gcc compiler, and so forth).
  172.   You can elect to install whatever disk sets you like, and can easily
  173.   install new ones later.
  174.  
  175.   Slackware is also easy to install; it is very self-explanatory.  (So
  176.   self-explanatory, in fact, that this HOWTO may not be necessary.)
  177.  
  178.   The version of Slackware described here is 3.4.0, of November 1997.
  179.   Installation of later versions of Slackware should be very similar to
  180.   the information given here.
  181.  
  182.   Information on other releases can be found in the Linux Installation
  183.   and Getting Started manual from the LDP. You can also find other
  184.   releases of Linux on various FTP sites, including
  185.   sunsite.unc.edu:/pub/Linux/distributions See the Distribution-HOWTO
  186.   (mentioned above) for details.
  187.  
  188.   The instructions here should be general enough to be applicable to
  189.   releases other than Slackware. I hate to be biased towards a single
  190.   release, but I don't have time to keep up with them all! And Slackware
  191.   appears to have what most Linux users are looking for.
  192.  
  193.  
  194.  
  195.   3.2.  Slackware Space Requirements
  196.  
  197.   Unfortunately, Slackware does not maintain a complete list of
  198.   diskspace requirements for each disk set. You need at least 7
  199.   megabytes to install just the A series of disks; a very rough estimate
  200.   of the required diskspace would be 2 or 2.5 megabytes per disk.
  201.  
  202.   The following disk sets are available:
  203.  
  204.      A  The base system. Enough to get up and running and have elvis and
  205.         comm programs available. Based around the 2.0.30 Linux kernel,
  206.         and the Linux filesystem standard (FSSTND).
  207.  
  208.         These disks are known to fit on 1.2M disks, although the rest of
  209.         Slackware won't. If you have only a 1.2M floppy, you can still
  210.         install the base system, download other disks you want and
  211.         install them from your hard drive.
  212.  
  213.  
  214.      AP Various applications and add ons, such as the manual pages,
  215.         groff, ispell (GNU and international versions), term, joe, jove,
  216.         ghostscript, sc, bc, and the quota patches.
  217.  
  218.  
  219.      D  Program development. GCC/G++/Objective C 2.7.2.3, make (GNU and
  220.         BSD), byacc and GNU bison, flex, the 5.4.33 C libraries, gdb,
  221.         SVGAlib, ncurses, clisp, f2c, p2c, m4, perl, rcs.
  222.  
  223.  
  224.      E  GNU Emacs 19.34.
  225.  
  226.  
  227.      F  A collection of FAQs and other documentation.
  228.  
  229.  
  230.      K  Source code for the 2.0.30 Linux kernel.
  231.  
  232.  
  233.      N  Networking. TCP/IP, UUCP, mailx, dip, deliver, elm, pine, smail,
  234.         cnews, nn, tin, trn.
  235.  
  236.  
  237.      TCL Tcl, Tk, TclX, TkDesk.
  238.  
  239.  
  240.      Y  Games. The BSD games collection, Sasteroids, Koules, and Lizards.
  241.  
  242.  
  243.      X  The base X Window System (from XFree86 3.3.1)
  244.  
  245.  
  246.      XAP
  247.         X applications: X11 ghostscript, libgr, seyon, workman,
  248.         xfilemanager, xv 3.10a, GNU chess and xboard, xfm, ghostview,
  249.         and various X games.
  250.  
  251.  
  252.  
  253.      XD X11 program development. X11 libraries, server linkkit, PEX
  254.         support.
  255.  
  256.  
  257.      XV Xview 3.2-X11R6.  XView libraries, and the Open Look virtual
  258.         and non-virtual window managers.
  259.  
  260.  
  261.      T  The TeX and LaTeX2e text formatting systems.
  262.  
  263.  
  264.   You must get the ``a'' disk set; the rest are optional.  I suggest at
  265.   least installing the a, ap, and d sets, as well as the x set if you
  266.   plan to run X Windows.
  267.  
  268.  
  269.   3.3.  Getting Slackware via Mail Order
  270.  
  271.   Slackware is available for free from the Internet, as well as via mail
  272.   order (if you don't have Internet access, or don't want to take the
  273.   time to download it yourself). The next section describes how to
  274.   download Slackware from the Internet.
  275.  
  276.   The official Slackware CD-ROM set is available from Walnut Creek CDROM,
  277.   see:  http://www.cdrom.com.
  278.  
  279.  
  280.   3.4.  Getting Slackware from the Internet
  281.  
  282.   The Slackware release of Linux may be found on any number of FTP sites
  283.   worldwide. The Linux META-FAQ lists several of the Linux FTP sites; we
  284.   suggest that you try to find the software on the FTP site nearest you,
  285.   to reduce net traffic. However, two of the major Linux FTP sites are
  286.   sunsite.unc.edu and tsx-11.mit.edu.
  287.  
  288.   The Slackware release may be found on the following FTP sites:
  289.  
  290.   o  sunsite.unc.edu:/pub/Linux/distributions/slackware
  291.  
  292.   o  tsx-11.mit.edu:/pub/linux/packages/slackware
  293.  
  294.   o  ftp.cdrom.com:/pub/linux/slackware
  295.  
  296.      ftp.cdrom.com is Slackware's home site.
  297.  
  298.  
  299.   3.4.1.  Downloading the files
  300.  
  301.   You need to download the following files from the FTP sites listed
  302.   above. Make sure that you use binary mode when FTPing them!
  303.  
  304.  
  305.  
  306.   o  The various README files, as well as FAQ.TXT.  Be sure to
  307.      read these files before attempting to install the software, to get
  308.      any updates or changes to this document.
  309.  
  310.   o  A bootdisk image. This is a file that you will write to a floppy to
  311.      create the Slackware boot disk. If you have a 1.44 megabyte boot
  312.      floppy (3.5"), look in the directory bootdsks.144.  If you have a
  313.      1.2 megabyte boot floppy (5.25"), look in the directory
  314.      bootdsks.12.  The README files in these directories describes what
  315.      the files are.
  316.  
  317.      You need one of the following files:
  318.  
  319.  
  320.     IDE bootdisks:     (All IDE bootdisks support IDE hard drives and CD-ROM
  321.                         drives, plus additional support listed below)
  322.     --------------
  323.  
  324.     aztech.i           CD-ROM drives:  Aztech CDA268-01A, Orchid CD-3110,
  325.                        Okano/Wearnes CDD110, Conrad TXC, CyCDROM CR520, CR540.
  326.  
  327.     bare.i             (none, just IDE support)
  328.  
  329.     cdu31a.i           Sony CDU31/33a CD-ROM.
  330.  
  331.     cdu535.i           Sony CDU531/535 CD-ROM.
  332.  
  333.     cm206.i            Philips/LMS cm206 CD-ROM with cm260 adapter card.
  334.  
  335.     goldstar.i         Goldstar R420 CD-ROM (sometimes sold in a 'Reveal
  336.                        Multimedia Kit').
  337.  
  338.     mcd.i              NON-IDE Mitsumi CD-ROM support.
  339.  
  340.     mcdx.i             Improved NON-IDE Mitsumi CD-ROM support.
  341.  
  342.     net.i              Ethernet support.
  343.  
  344.     optics.i           Optics Storage 8000 AT CD-ROM (the 'DOLPHIN' drive).
  345.  
  346.     sanyo.i            Sanyo CDR-H94A CD-ROM support.
  347.  
  348.     sbpcd.i            Matsushita, Kotobuki, Panasonic, CreativeLabs 
  349.                        (Sound Blaster), Longshine and Teac NON-IDE CD-ROM
  350.                        support.
  351.  
  352.     xt.i               MFM hard drive support.
  353.  
  354.  
  355.     SCSI bootdisks:    (All SCSI bootdisks feature full IDE hard drive and
  356.                        CD-ROM drive support, plus additional drivers listed
  357.                        below)
  358.     ---------------
  359.  
  360.     7000fast.s         Western Digital 7000FASST SCSI support.
  361.  
  362.     advansys.s         AdvanSys SCSI support.
  363.  
  364.     aha152x.s          Adaptec 152x SCSI support.
  365.  
  366.     aha1542.s          Adaptec 1542 SCSI support.
  367.  
  368.     aha1740.s          Adaptec 1740 SCSI support.
  369.  
  370.     aha2x4x.s          Adaptec AIC7xxx SCSI support.  
  371.                        (For these cards: AHA-274x, AHA-2842, AHA-2940, 
  372.                        AHA-2940W, AHA-2940U, AHA-2940UW, AHA-2944D, AHA-2944WD,
  373.                        AHA-3940, AHA-3940W, AHA-3985, AHA-3985W)
  374.  
  375.     am53c974.s         AMD AM53/79C974 SCSI support.
  376.  
  377.     aztech.s           All supported SCSI controllers, plus CD-ROM support for
  378.                        Aztech CDA268-01A, Orchid CD-3110, Okano/Wearnes CDD110,
  379.                        Conrad TXC, CyCDROM CR520, CR540.
  380.  
  381.     buslogic.s         Buslogic MultiMaster SCSI support.
  382.  
  383.     cdu31a.s           All supported SCSI controllers, plus CD-ROM support for
  384.                        Sony CDU31/33a.
  385.  
  386.     cdu535.s           All supported SCSI controllers, plus CD-ROM support for
  387.                        Sony CDU531/535.
  388.  
  389.     cm206.s            All supported SCSI controllers, plus Philips/LMS cm206
  390.                        CD-ROM with cm260 adapter card.
  391.  
  392.     dtc3280.s          DTC (Data Technology Corp) 3180/3280 SCSI support.
  393.  
  394.     eata_dma.s         DPT EATA-DMA SCSI support.  (Boards such as PM2011, 
  395.                        PM2021, PM2041, PM3021, PM2012B, PM2022, PM2122, PM2322,
  396.                        PM2042, PM3122, PM3222, PM3332, PM2024, PM2124, PM2044, 
  397.                        PM2144, PM3224, PM3334.)
  398.  
  399.     eata_isa.s         DPT EATA-ISA/EISA SCSI support.  (Boards such as 
  400.                        PM2011B/9X, PM2021A/9X, PM2012A, PM2012B, PM2022A/9X,
  401.                        PM2122A/9X, PM2322A/9X)
  402.  
  403.     eata_pio.s         DPT EATA-PIO SCSI support.  (PM2001 and PM2012A)
  404.  
  405.     fdomain.s          Future Domain TMC-16x0 SCSI support.
  406.  
  407.     goldstar.s         All supported SCSI controllers, plus Goldstar R420
  408.                        CD-ROM (sometimes sold in a 'Reveal Multimedia Kit').
  409.  
  410.     in2000.s           Always IN2000 SCSI support.
  411.  
  412.     iomega.s           IOMEGA PPA3 parallel port SCSI support.  (also supports
  413.                        the parallel port version of the ZIP drive)
  414.  
  415.     mcd.s              All supported SCSI controllers, plus standard non-IDE
  416.                        Mitsumi CD-ROM support.
  417.  
  418.     mcdx.s             All supported SCSI controllers, plus enhanced non-IDE
  419.                        Mitsumi CD-ROM support.
  420.  
  421.     n53c406a.s         NCR 53c406a SCSI support.
  422.  
  423.     n_5380.s           NCR 5380 and 53c400 SCSI support.
  424.  
  425.     n_53c7xx.s         NCR 53c7xx, 53c8xx SCSI support.  (Most NCR PCI
  426.                        SCSI controllers use this driver)
  427.  
  428.     optics.s           All supported SCSI controllers, plus support for the 
  429.                        Optics Storage 8000 AT CD-ROM (the 'DOLPHIN' drive).
  430.  
  431.     pas16.s            Pro Audio Spectrum/Studio 16 SCSI support.
  432.  
  433.     qlog_fas.s         ISA/VLB/PCMCIA Qlogic FastSCSI! support.  (also 
  434.                        supports the Control Concepts SCSI cards based on the
  435.                        Qlogic FASXXX chip)
  436.  
  437.     qlog_isp.s         Supports all Qlogic PCI SCSI controllers, except the
  438.                        PCI-basic, which is supported by the AMD SCSI driver.
  439.  
  440.     sanyo.s            All supported SCSI controllers, plus Sanyo CDR-H94A
  441.                        CD-ROM support.
  442.  
  443.     sbpcd.s            All supported SCSI controllers, plus Matsushita, 
  444.                        Kotobuki, Panasonic, CreativeLabs (Sound Blaster), 
  445.                        Longshine and Teac NON-IDE CD-ROM support.
  446.  
  447.     scsinet.s          All supported SCSI controllers, plus full ethernet
  448.                        support.
  449.  
  450.     seagate.s          Seagate ST01/ST02, Future Domain TMC-885/950 SCSI
  451.                        support.
  452.  
  453.     trantor.s          Trantor T128/T128F/T228 SCSI support.
  454.  
  455.     ultrastr.s         UltraStor 14F, 24F, and 34F SCSI support.
  456.  
  457.     ustor14f.s         UltraStor 14F and 34F SCSI support.
  458.  
  459.  
  460.   o  A rootdisk image. This is a file that you will write to a floppy to
  461.      create the Slackware installation disk. As with the bootdisk image,
  462.      look in rootdsks.144 or rootdsks.12 depending on the type of boot
  463.      floppy drive that you have.
  464.  
  465.      You need one of the following files:
  466.  
  467.   o  color.gz. The menu-based color installation disk for 1.44 meg
  468.      drives. Most users should use this rootdisk.
  469.  
  470.   o  umsdos.gz. A version of the color.gz disk for installing with the
  471.      UMSDOS filesystem, which allows you to install Linux onto a
  472.      directory of an MS-DOS filesystem. This installation method is not
  473.      discussed in detail here, but it will prevent you from having to
  474.      repartition your drive. More on this later.
  475.  
  476.   o  text.gz. The terminal-based installation disk for 1.44 meg
  477.      drives. You should use color.gz, but a few people have reported
  478.      problems with it on their system. If color.gz doesn't work for
  479.      you, try text.gz instead.  It is a bit dated and the installation
  480.      procedure isn't identical, but it should work if color.gz
  481.      doesn't.
  482.  
  483.   o  pcmcia.gz.  This disk contains support for installing via a PCMCIA
  484.      card.  
  485.  
  486.      Again, you need only one of the above rootdisk images, depending on
  487.      the type of boot floppy drive that you have.
  488.  
  489.   o  RAWRITE.EXE. This is an MS-DOS program that will write the contents
  490.      of a file (such as the boot and rootdisk images) directly to a
  491.      floppy, without regard to format. You will use RAWRITE.EXE to
  492.      create the boot and root floppies.  This can be found in the
  493.      install directory as well.
  494.  
  495.      You only need RAWRITE.EXE if you plan to create the boot and root
  496.      floppies from an MS-DOS system. If you have access to a UNIX
  497.      workstation with a floppy drive instead, you can create the floppies
  498.      from there, using the dd command.  See the man page for dd and ask
  499.      your local UNIX gurus for assistance.
  500.  
  501.   o  The files in the directories a1 through a9.  These files make up
  502.      the ``a'' disk set of the Slackware distribution. They are
  503.      required. Later, you will copy these files to MS-DOS floppies for
  504.      installation (or, you can install from your hard drive). Therefore,
  505.      when you download these files, keep them in separate directories;
  506.      don't mix the a1 files with the a2 files, and so on.
  507.  
  508.      Be sure that you get the files without periods in the filenames as
  509.      well. That is, within FTP, use the command ``mget *'' instead of
  510.      ``mget *.*''.
  511.  
  512.   o  The files in the directories ap1, ap2, etc., depending on what disk
  513.      sets you are installing. For example, if you are installing the
  514.      ``x'' disk series, get the files in the directories x1 through x5.
  515.      As with the ``a'' disk set, above, be sure to keep the files in
  516.      separate directories when you download them.
  517.  
  518.  
  519.   3.4.2.  Installation methods
  520.  
  521.   Slackware provides several different means of installing the software.
  522.   The most popular is installing from an MS-DOS partition on your hard
  523.   drive; the other is to install from a set of MS-DOS floppies created
  524.   from the disk sets that you downloaded.
  525.  
  526.   You can also install Slackware from an NFS-mounted filesystem over a
  527.   TCP/IP network. This is somewhat involved, however, and a discussion
  528.   of how to do this is out of the range of this document. If you need
  529.   help, ask your local UNIX gurus how to set up your system to mount an
  530.   NFS filesystem which you can install Slackware from. (For this, you'll
  531.   need another system on the network which has Slackware available on an
  532.   exported filesystem.)
  533.  
  534.   First we'll describe how to create the boot and root floppies, and
  535.   then we'll describe how to set things up for either a hard drive or
  536.   floppy installation.
  537.  
  538.  
  539.   3.4.2.1.  Creating the boot and root floppies
  540.  
  541.   You must create floppies from the bootdisk and rootdisk images that
  542.   you downloaded, no matter what type of installation you will be doing.
  543.   This is where the MS-DOS program RAWRITE.EXE comes into play.
  544.  
  545.   First, you must have two high-density MS-DOS formatted floppies.  (They
  546.   must be of the same type; that is, if your boot floppy drive is a 3.5"
  547.   drive, both floppies must be high-density 3.5" disks.) You will use
  548.   RAWRITE.EXE to write the boot and rootdisk images to the floppies.
  549.  
  550.   For example, if you're using the bare.i bootdisk, use the command:
  551.  
  552.        C:\> RAWRITE BARE.I A:
  553.  
  554.  
  555.   RAWRITE will copy the file, block-by-block, directly to the floppy. 
  556.   Also use RAWRITE for the root disk image (such as COLOR.GZ). When 
  557.   you're done, you'll have two floppies: one containing the boot disk,
  558.   the other containing the root disk. Note that these two floppies will
  559.   no longer be readable by MS-DOS (they are ``Linux format'' floppies,
  560.   in some sense).
  561.  
  562.   Be sure that you're using brand-new, error-free floppies. The floppies
  563.   must have no bad blocks on them.
  564.  
  565.   Note that you do not need to be running MS-DOS in order to install
  566.   Slackware. However, running MS-DOS makes it easier to create the boot
  567.   and root floppies, and it makes it easier to install the software (as
  568.   you can install directly from an MS-DOS partition on your system). If
  569.   you are not running MS-DOS on your system, you can use someone else's
  570.   MS-DOS system just to create the floppies, and install from there.
  571.  
  572.   It is not necessary to use RAWRITE.EXE under MS-DOS to create the boot
  573.   and root floppies, either. You can use the dd command on a UNIX system
  574.   to do the same job.  (For this, you will need a UNIX workstation with
  575.   a floppy drive, of course.) For example, on a Sun workstation with the
  576.   floppy drive on device /dev/rfd0, you can use the command:
  577.  
  578.  
  579.        $ dd if=bare.i of=/dev/rfd0 obs=18k
  580.  
  581.  
  582.  
  583.  
  584.   You must provide the appropriate block size argument (the obs argu-
  585.   ment) on some workstations (e.g., Suns) or this will fail. If you have
  586.   problems the man page for dd will be instructive.
  587.  
  588.  
  589.   3.4.2.2.  Preparing for installation from hard drive
  590.  
  591.   If you're planning on installing the Slackware software directly from
  592.   the hard drive (which is much faster and more reliable than a floppy
  593.   installation), you will need an MS-DOS partition on the system that
  594.   you're installing Slackware to. (That is, you must already be running
  595.   MS-DOS on the system.)
  596.  
  597.   Note: If you plan to install Slackware from an MS-DOS partition, that
  598.   partition must NOT be compressed with DoubleSpace, Stacker, or any
  599.   other MS-DOS drive compression utility. Linux cannot currently read
  600.   DoubleSpace/Stacker MS-DOS partitions directly. (You can access them
  601.   via the MS-DOS Emulator, but that is not an option when installing the
  602.   Linux software.)
  603.  
  604.   To prepare for hard drive installation, simply create a directory on
  605.   the hard drive to store the Slackware files. For example,
  606.  
  607.        C:\> MKDIR SLACKWAR
  608.  
  609.  
  610.   will create the directory C:\SLACKWAR to hold the Slackware files.
  611.   Under this directory, you should create the subdirectories A1, A2, and
  612.   so on, for each disk set that you downloaded. All of the files from
  613.   the A1 disk should go into the directory SLACKWAR\A1, and so forth.
  614.  
  615.   Now you're ready to go on and install the software; skip to the
  616.   section ``Installing the Software''.
  617.  
  618.  
  619.   3.4.2.3.  Preparing for floppy installation
  620.  
  621.   If you wish to install Slackware from floppies instead of the hard
  622.   drive, you'll need to have one blank, MS-DOS formatted floppy for each
  623.   Slackware disk that you downloaded. These disks must be high-density
  624.   format.
  625.  
  626.   The A disk set (disks A1 through A8) may be either 3.5" or 5.25"
  627.   floppies. However, the rest of the disk sets must be 3.5" disks.
  628.   Therefore, if you only have a 5.25" floppy drive, you'll need to
  629.   borrow a 3.5" drive from someone in order to install disk sets other
  630.   than A. (Or, you can install from the hard drive, as explained in the
  631.   previous section.)
  632.  
  633.   To make the disks, simply copy the files from each Slackware directory
  634.   onto an MS-DOS formatted floppy, using the MS-DOS COPY command. As so:
  635.  
  636.        C:\> COPY A1\*.* A:
  637.  
  638.  
  639.   will copy the contents of the A1 disk to the floppy in drive A:.  You
  640.   should repeat this for each disk that you downloaded.
  641.   You do not need to modify or uncompress the files on the disks in any
  642.   way; you merely need to copy them to MS-DOS floppies. The Slackware
  643.   installation procedure takes care of uncompressing the files for you.
  644.  
  645.  
  646.   4.  Installing the Software
  647.  
  648.   In this section we'll describe how to prepare your system for
  649.   installing Slackware, and finally how to go about installing it.
  650.  
  651.  
  652.   4.1.  Repartitioning
  653.  
  654.   On most systems, the hard drive is already dedicated to partitions for
  655.   MS-DOS, OS/2, and so on.  You need to resize these partitions in order
  656.   to make space for Linux.
  657.  
  658.   NOTE: If you use one of the umsds root diskettes, you can install
  659.   Slackware TO a directory on your MS-DOS partition. (This is different
  660.   than installing FROM an MS-DOS partition.) Instead, you use the
  661.   ``UMSDOS filesystem'', which allows you to treat a directory of your
  662.   MS-DOS partition as a Linux filesystem. In this way, you don't have to
  663.   repartition your drive.
  664.  
  665.   I only suggest using this method if your drive has four partitions and
  666.   repartitioning would be more trouble than it's worth. Or, if you want
  667.   to try Slackware out before repartitioning, this is a good way to do
  668.   so. But in most cases you should repartition, as described here. If
  669.   you do plan to use UMSDOS, you are on your own---it is not documented
  670.   in detail here. From now on, we assume that you are NOT using UMSDOS,
  671.   and that you will be repartitioning.
  672.  
  673.   A partition is just a section of the hard drive set aside for a
  674.   particular operating system to use. If you only have MS-DOS installed,
  675.   your hard drive probably has just one partition, entirely for MS-DOS.
  676.   To use Linux, however, you'll need to repartition the drive, so that
  677.   you have one partition for MS-DOS, and one (or more) for Linux.
  678.  
  679.   Partitions come in three flavors: primary, extended, and logical.
  680.   Briefly, primary partitions are one of the four main partitions on
  681.   your drive. However, if you wish to have more than four partitions per
  682.   drive, you need to create an extended partition, which can contain
  683.   many logical partitions.  You don't store data directly on an extended
  684.   partition---it is used only as a container for logical partitions.
  685.   Data is stored only on either primary or logical partitions.
  686.  
  687.   To put this another way, most people use only primary partitions.
  688.   However, if you need more than four partitions on a drive, you create
  689.   an extended partition. Logical partitions are then created on top of
  690.   the extended partition, and there you have it---more than four
  691.   partitions per drive.
  692.  
  693.   Note that you can easily install Linux on the second drive on your
  694.   system (known as D: to MS-DOS). You simply specify the appropriate
  695.   device name when creating Linux partitions. This is described in
  696.   detail below.
  697.  
  698.   Back to repartitioning your drive: The problem with resizing
  699.   partitions is that there is no way to do it (easily) without deleting
  700.   the data on those partitions.  Therefore, you will need to make a full
  701.   backup of your system before repartitioning. In order to resize a
  702.   partition, we simply delete the partition(s), and re-create them with
  703.   smaller sizes.
  704.  
  705.   NOTE: There is a non-destructive disk repartitioner available for MS-
  706.   DOS, called FIPS. Look on sunsite.unc.edu in the directory
  707.   /pub/Linux/system/Install. With FIPS, a disk optimizer (such as Norton
  708.   Speed Disk), and a little bit of luck, you should be able to resize
  709.   MS-DOS partitions without destroying the data on them.  It's still
  710.   suggested that you make a full backup before attempting this.
  711.  
  712.   If you're not using FIPS, however, the classic way to modify
  713.   partitions is with the program FDISK. For example, let's say that you
  714.   have an 80 meg hard drive, dedicated to MS-DOS. You'd like to split it
  715.   in half---40 megs for MS-DOS and 40 megs for Linux. In order to do
  716.   this, you run FDISK under MS-DOS, delete the 80 meg MS-DOS partition,
  717.   and re-create a 40 meg MS-DOS partition in its place. You can then
  718.   format the new partition and reinstall your MS-DOS software from
  719.   backups. 40 megabytes of the drive is left empty. Later, you create
  720.   Linux partitions on the unused portion of the drive.
  721.  
  722.   In short, you should do the following to resize MS-DOS partitions with
  723.   FDISK:
  724.  
  725.   1. Make a full backup of your system.
  726.  
  727.   2. Create an MS-DOS bootable floppy, using a command such as
  728.  
  729.        FORMAT /S A:
  730.  
  731.  
  732.   3. Copy the files FDISK.EXE and FORMAT.COM to this floppy, as well as
  733.      any other utilities that you need. (For example, utilities to
  734.      recover your system from backup.)
  735.  
  736.   4. Boot the MS-DOS system floppy.
  737.  
  738.   5. Run FDISK, possibly specifying the drive to modify (such as C: or
  739.      D:).
  740.  
  741.   6. Use the FDISK menu options to delete the partitions which you wish
  742.      to resize. This will destroy all data on the affected partitions.
  743.  
  744.   7. Use the FDISK menu options to re-create those partitions, with
  745.      smaller sizes.
  746.  
  747.   8. Exit FDISK and re-format the new partitions with the FORMAT
  748.      command.
  749.  
  750.   9. Restore the original files from backup.
  751.  
  752.   Note that MS-DOS FDISK will give you an option to create a ``logical
  753.   DOS drive''. A logical DOS drive is just a logical partition on your
  754.   hard drive. You can install Linux on a logical partition, but you
  755.   don't want to create that logical partition with MS-DOS fdisk. So, if
  756.   you're currently using a logical DOS drive, and want to install Linux
  757.   in its place, you should delete the logical drive with MS-DOS FDISK,
  758.   and (later) create a logical partition for Linux in its place.
  759.  
  760.   The mechanism used to repartition for OS/2 and other operating systems
  761.   is similar. See the documentation for those operating systems for
  762.   details.
  763.  
  764.  
  765.  
  766.   4.2.  Creating partitions for Linux
  767.  
  768.   After repartitioning your drive, you need to create partitions for
  769.   Linux. Before describing how to do that, we'll talk about partitions
  770.   and filesystems under Linux.
  771.  
  772.  
  773.   4.2.1.  Filesystems and swap space
  774.  
  775.   Linux requires at least one partition, for the root filesystem, which
  776.   will hold the Linux software itself.
  777.  
  778.   You can think of a filesystem as a partition formatted for Linux.
  779.   Filesystems are used to hold files. Every system must have a root
  780.   filesystem, at least. However, many users prefer to use multiple
  781.   filesystems---one for each major part of the directory tree. For
  782.   example, you may wish to create a separate filesystem to hold all
  783.   files under the /usr directory.  (Note that on UNIX systems, forward
  784.   slashes are used to delimit directories, not backslashes as with MS-
  785.   DOS.) In this case you have both a root filesystem, and a /usr
  786.   filesystem.
  787.  
  788.   Each filesystem requires its own partition. Therefore, if you're using
  789.   both root and /usr filesystems, you'll need to create two Linux
  790.   partitions.
  791.  
  792.   In addition, most users create a swap partition, which is used for
  793.   virtual RAM. If you have, say, 4 megabytes of memory on your machine,
  794.   and a 10-megabyte swap partition, as far as Linux is concerned you
  795.   have 14 megabytes of virtual memory.
  796.  
  797.   When using swap space, Linux moves unused pages of memory out to disk,
  798.   allowing you to run more applications at once on your system.
  799.   However, because swapping is often slow, it's no replacement for real
  800.   physical RAM. But applications that require a great deal of memory
  801.   (such as the X Window System) often rely on swap space if you don't
  802.   have enough physical RAM.
  803.  
  804.   Nearly all Linux users employ a swap partition.  If you have 4
  805.   megabytes of RAM or less, a swap partition is required to install the
  806.   software. It is strongly recommended that you have a swap partition
  807.   anyway, unless you have a great amount of physical RAM.
  808.  
  809.   The size of your swap partition depends on how much virtual memory you
  810.   need. It's often suggested that you have at least 16 megabytes of
  811.   virtual memory total. Therefore, if you have 8 megs of physical RAM,
  812.   you might want to create an 8-megabyte swap partition.  In fact, with the
  813.   high memory requirements of today's X applications, you should probably
  814.   consider shooting for a higher total virtual memory figure, like 32 MB or
  815.   even 64 MB.
  816.  
  817.  
  818.   4.2.2.  Booting the installation disk
  819.  
  820.   The first step is to boot the Slackware bootdisk.  After the system
  821.   boots, you will see the message:
  822.  
  823.     VFS: Insert root floppy disk to be loaded into ramdisk and press ENTER
  824.  
  825.  
  826.  
  827.   At this point you should remove the bootdisk from the drive and insert
  828.   the rootdisk. Then press enter to go on.
  829.  
  830.   The rootdisk will be loaded into memory, and you should be presented
  831.   with a login prompt. Login as ``root''.
  832.  
  833.  
  834.  
  835.   slackware login: root
  836.   #
  837.  
  838.  
  839.   4.2.3.  Using fdisk
  840.  
  841.   To create partitions, you'll use the Linux fdisk program.  After
  842.   logging in as root, run the command
  843.  
  844.        fdisk <drive>
  845.  
  846.  
  847.   where <drive> is the name of the drive that you wish to create Linux
  848.   partitions on. Hard drive device names are:
  849.  
  850.   o  /dev/hda First IDE drive
  851.  
  852.   o  /dev/hdb Second IDE drive
  853.  
  854.   o  /dev/sda First SCSI drive
  855.  
  856.   o  /dev/sdb Second SCSI drive
  857.  
  858.      For example, to create Linux partitions on the first SCSI drive in
  859.      your system, use the command
  860.  
  861.        fdisk /dev/sda
  862.  
  863.  
  864.   If you use fdisk without an argument, it will assume /dev/hda.
  865.  
  866.   To create Linux partitions on the second drive on your system, simply
  867.   specify either /dev/hdb (for IDE drives) or /dev/sdb (for SCSI drives)
  868.   when running fdisk.
  869.  
  870.   Your Linux partitions don't all have to be on the same drive.  You
  871.   might want to create your root filesystem partition on /dev/hda and
  872.   your swap partition on /dev/hdb, for example. In order to do so just
  873.   run fdisk once for each drive.
  874.  
  875.   Use of fdisk is simple. The command ``p'' displays your current
  876.   partition table. ``n'' creates a new partition, and ``d'' deletes a
  877.   partition.
  878.  
  879.   To Linux, partitions are given a name based on the drive which they
  880.   belong to. For example, the first partition on the drive /dev/hda is
  881.   /dev/hda1, the second is /dev/hda2, and so on. If you have any logical
  882.   partitions, they are numbered starting with /dev/hda5, /dev/hda6 and
  883.   so on up.
  884.  
  885.   NOTE: You should not create or delete partitions for operating systems
  886.   other than Linux with Linux fdisk. That is, don't create or delete MS-
  887.   DOS partitions with this version of fdisk; use MS-DOS's version of
  888.   FDISK instead. If you try to create MS-DOS partitions with Linux
  889.   fdisk, chances are MS-DOS will not recognize the partition and not
  890.   boot correctly.
  891.  
  892.   Here's an example of using fdisk. Here, we have a single MS-DOS
  893.   partition using 61693 blocks on the drive, and the rest of the drive
  894.   is free for Linux. (Under Linux, one block is 1024 bytes. Therefore,
  895.   61693 blocks is about 61 megabytes.)  We will create two Linux
  896.   partitions: one for swap, and one for the root filesystem.
  897.  
  898.   First, we use the ``p'' command to display the current partition
  899.   table.  As you can see, /dev/hda1 (the first partition on /dev/hda) is
  900.   a DOS partition of 61693 blocks.
  901.  
  902.   ______________________________________________________________________
  903.   Command (m for help):   p
  904.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  905.   Units = cylinders of 608 * 512 bytes
  906.  
  907.        Device Boot  Begin   Start     End  Blocks   Id  System
  908.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  909.  
  910.   Command (m for help):
  911.   ______________________________________________________________________
  912.  
  913.  
  914.  
  915.   Next, we use the ``n'' command to create a new partition. The Linux
  916.   root partition will be 80 megs in size.
  917.  
  918.   ______________________________________________________________________
  919.   Command (m for help):  n
  920.   Command action
  921.       e   extended
  922.       p   primary partition (1-4)
  923.   p
  924.   ______________________________________________________________________
  925.  
  926.  
  927.   Here we're being asked if we want to create an extended or primary
  928.   partition. In most cases you want to use primary partitions, unless
  929.   you need more than four partitions on a drive. See the section
  930.   ``Repartitioning'', above, for more information.
  931.  
  932.   ______________________________________________________________________
  933.   Partition number (1-4): 2
  934.   First cylinder (204-683):  204
  935.   Last cylinder or +size or +sizeM or +sizeK (204-683): +80M
  936.   ______________________________________________________________________
  937.  
  938.  
  939.  
  940.   The first cylinder should be the cylinder AFTER where the last
  941.   partition left off. In this case, /dev/hda1 ended on cylinder 203, so
  942.   we start the new partition at cylinder 204.
  943.  
  944.   As you can see, if we use the notation ``+80M'', it specifies a
  945.   partition of 80 megs in size. Likewise, the notation ``+80K'' would
  946.   specify an 80 kilobyte partition, and ``+80'' would specify just an 80
  947.   byte partition.
  948.  
  949.   Next, we create our 10 megabyte swap partition, /dev/hda3.
  950.  
  951.   ______________________________________________________________________
  952.   Command (m for help): n
  953.   Command action
  954.       e   extended
  955.       p   primary partition (1-4)
  956.   p
  957.  
  958.   Partition number (1-4): 3
  959.   First cylinder (474-683):  474
  960.   Last cylinder or +size or +sizeM or +sizeK (474-683):  +10M
  961.   ______________________________________________________________________
  962.  
  963.  
  964.  
  965.   Again, we display the contents of the partition table. Be sure to
  966.   write down the information here, especially the size of each partition
  967.   in blocks. You need this information later.
  968.  
  969.   ______________________________________________________________________
  970.   Command (m for help): p
  971.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  972.   Units = cylinders of 608 * 512 bytes
  973.  
  974.        Device Boot  Begin   Start     End  Blocks   Id  System
  975.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  976.     /dev/hda2         204     204     473   82080   83  Linux native
  977.     /dev/hda3         474     474     507   10336   83  Linux native
  978.   ______________________________________________________________________
  979.  
  980.  
  981.  
  982.   Note that the Linux swap partition (here, /dev/hda3) has type ``Linux
  983.   native''. We need to change the type of the swap partition to ``Linux
  984.   swap'' so that the installation program will recognize it as such. In
  985.   order to do this, use the fdisk ``t'' command:
  986.  
  987.   ______________________________________________________________________
  988.   Command (m for help): t
  989.   Partition number (1-4): 3
  990.   Hex code (type L to list codes): 82
  991.   ______________________________________________________________________
  992.  
  993.  
  994.   If you use ``L'' to list the type codes, you'll find that 82 is the
  995.   type corresponding to Linux swap.
  996.  
  997.   To quit fdisk and save the changes to the partition table, use the
  998.   ``w'' command. To quit fdisk WITHOUT saving changes, use the ``q''
  999.   command.
  1000.  
  1001.   After quitting fdisk, the system may tell you to reboot to make sure
  1002.   that the changes took effect. In general there is no reason to reboot
  1003.   after using fdisk---the version of fdisk on the Slackware distribution
  1004.   is smart enough to update the partitions without rebooting.
  1005.   4.3.  Preparing the swap space
  1006.  
  1007.   If you have 4 megabytes of RAM (or less) in your machine, you need to
  1008.   create a swap partition (using fdisk) and enable it for use before
  1009.   installing the software. Here, we describe how to format and enable
  1010.   your swap partition(s).
  1011.  
  1012.   If you have more than 4 megs of RAM, you need only create your
  1013.   partition(s)---it's not necessary to format and enable them before
  1014.   installing the software.  In this case you can skip down to the
  1015.   section ``Installing the Software''.
  1016.  
  1017.   If you get any ``out of memory'' errors during the installation
  1018.   procedure you should create a swap partition and enable it as
  1019.   described here.
  1020.  
  1021.   To prepare the swap space for use, we use the mkswap command.  It
  1022.   takes the form:
  1023.  
  1024.        mkswap -c <partition> <size>
  1025.  
  1026.  
  1027.   where <partition> is the partition name, such as /dev/hda3, and <size>
  1028.   is the size of the partition in blocks.
  1029.  
  1030.   For example, if you created the swap partition /dev/hda3 of size 10336
  1031.   blocks, use the command
  1032.  
  1033.        mkswap -c /dev/hda3 10336
  1034.  
  1035.  
  1036.   The -c option tells mkswap to check for bad blocks on the partition
  1037.   when preparing the swap space. If you see any ``read_intr'' error mes-
  1038.   sages during the mkswap operation, this means that bad blocks were
  1039.   found (and flagged). So you can ignore these errors.
  1040.  
  1041.   To enable swapping on the new device, use the command
  1042.  
  1043.        swapon <partition>
  1044.  
  1045.  
  1046.   For example, for our swap space on /dev/hda3, we use
  1047.  
  1048.        swapon /dev/hda3
  1049.  
  1050.  
  1051.   We're now swapping with about 10 megabytes more virtual memory.
  1052.  
  1053.   You should execute mkswap and swapon for each swap partition that you
  1054.   created.
  1055.  
  1056.  
  1057.   4.4.  Installing the software
  1058.  
  1059.   Installing the Slackware release is very simple; it's almost
  1060.   automatic. You use the setup command, which guides you through a
  1061.   series of menus which allow you to specify the means of installation,
  1062.   the partitions to use, and so forth.  Almost everything is automatic.
  1063.  
  1064.   Here, we're not going to document many of the specifics of using
  1065.   setup, because it changes from time to time. setup is very self-
  1066.   explanatory; it contains its own documentation. Just to give you an
  1067.   idea of what it's like, however, we'll describe what most
  1068.   installations are like using setup.
  1069.  
  1070.  
  1071.   Before you begin, be sure that you have a high-density MS-DOS
  1072.   formatted floppy on hand. You will use this floppy to create a Linux
  1073.   boot diskette.
  1074.  
  1075.   After running fdisk (and, perhaps, mkswap and swapon as described
  1076.   above), issue the command
  1077.  
  1078.        # setup
  1079.  
  1080.  
  1081.   This will present you with a colourful menu with various options such
  1082.   as ``Addswap'' (to set up your swap space), ``Source'' (to specify the
  1083.   source of the software to install, such as floppy or hard drive),
  1084.   ``Target'' (to specify where to install the software), and so on.
  1085.  
  1086.   In general, you should go through the menu commands in the following
  1087.   order:
  1088.  
  1089.   1. Addswap. If you created a swap partition (using fdisk), use the
  1090.      addswap menu option to tell the system about it.  This option will
  1091.      present you with a list of possible swap partitions; just type in
  1092.      the name of the swap partition(s) that you wish to use (such as
  1093.      /dev/hda3). The system will then ask you if you want to format the
  1094.      swap partition, which you should do unless you already ran mkswap
  1095.      and swapon on it.  That is, you should format the swap partition
  1096.      unless you already formatted and enabled it by hand as described in
  1097.      the previous section.
  1098.  
  1099.   2. Source. This menu option lets you specify the source for the
  1100.      software to install. You can select several means of installation,
  1101.      such as from floppy or from hard drive. If you are installing from
  1102.      floppies, the system will ask you which floppy drive to use. If you
  1103.      are installing from hard drive, the system will ask you what
  1104.      partition the files are stored on, and what directory they are in.
  1105.  
  1106.      For example, if you are installing from an MS-DOS partition on your
  1107.      hard drive, and the Slackware files are under the directory
  1108.      C:\SLACKWAR, you should enter the name of the MS-DOS partition
  1109.      (such as /dev/hda1) and the name of the directory (such as
  1110.      /slackwar). Note that you should use forward slashes (/), not
  1111.      backslashes (\), in the directory name.
  1112.  
  1113.      There are other means of installation, such as CD-ROM. These should
  1114.      be self-explanatory as well.
  1115.  
  1116.   3. Target. This menu item lets you specify what partition(s) to
  1117.      install the software on. The system will display a list of possible
  1118.      partitions. First you will be asked to enter the name of the root
  1119.      partition, such as /dev/hda2. You will be asked if you want to
  1120.      format the partition; unless you are installing on a partition
  1121.      previously formatted for Linux you should do so.
  1122.  
  1123.      You will also be given a chance to use additional partitions for
  1124.      different parts of the directory tree. For example, if you created
  1125.      a separate partition for the /usr filesystem, you should enter the
  1126.      name of that partition and the directory that it corresponds to
  1127.      (/usr) when asked.
  1128.  
  1129.   4. Disksets. This option allows you to specify the disksets you wish
  1130.      to install. Use the arrow keys to scroll through the list; pressing
  1131.      the spacebar selects or deselects a set. Press return when you're
  1132.      done selecting disk sets.
  1133.  
  1134.      You may wish to only install a minimal system at this time. That's
  1135.      fine. Only the A diskset is required. After you have installed the
  1136.      software you may run setup to install other disksets.
  1137.  
  1138.   5. Install. After setting up all of the parameters above, you're ready
  1139.      to install the software. First the system will ask you what type of
  1140.      prompting to use; you should use the ``normal'' prompting method
  1141.      (unless you're an expert and have modified the installation
  1142.      tagfiles in some way).
  1143.  
  1144.      The system will simply go through each disk set and install the
  1145.      software. For each software package, a dialog box will be displayed
  1146.      describing the software. Software packages that are required will
  1147.      be installed automatically. For optional software packages you will
  1148.      be given the option of either installing or not installing the
  1149.      package. (If you don't wish to install a certain package now, you
  1150.      can always use setup on your system to install it later).
  1151.  
  1152.      While the software is installing, watch out for error messages that
  1153.      may be displayed. The most common error that you're likely to run
  1154.      into is ``device full'', which means that you have run out of space
  1155.      on your Linux partitions. Unfortunately, the Slackware installation
  1156.      procedure is not quite smart enough to detect this, and will
  1157.      attempt to continue installing the software regardless. If you get
  1158.      any kind of error messages during the installation procedure, you
  1159.      may wish to break out of the installation program (using Ctrl-C) to
  1160.      record them. The only solution for the ``device full'' problem is
  1161.      to re-create your Linux partitions with different sizes, or attempt
  1162.      to reinstall the software without several of the optional software
  1163.      packages.
  1164.  
  1165.  
  1166.  
  1167.   4.5.  After installation
  1168.  
  1169.   After installation is complete, and if all goes well, you will be
  1170.   given the option of creating a ``standard boot disk'', which you can
  1171.   use to boot your newly-installed Linux system. For this you will need
  1172.   a blank, high-density MS-DOS formatted diskette of the type that you
  1173.   boot with on your system. Simply insert the disk when prompted and a
  1174.   boot diskette will be created.
  1175.  
  1176.   You will also be given the chance to install LILO on your hard drive.
  1177.   LILO (which stands for LInux LOader) is a program that will allow you
  1178.   to boot Linux (as well as other operating systems, such as MS-DOS)
  1179.   from your hard drive. If you wish to do this, just select the
  1180.   appropriate menu option and follow the prompts.
  1181.  
  1182.   If you are using OS/2's Boot Manager, the menu will include an option
  1183.   for configuring LILO for use with the Boot Manager, so that you can
  1184.   boot Linux from it.
  1185.  
  1186.   Note that this automated LILO installation procedure is not foolproof;
  1187.   there are situations in which this can fail. Be sure that you have a
  1188.   way to boot MS-DOS, Linux, and other operating systems from floppy
  1189.   before you attempt to install LILO. If the LILO installation fails you
  1190.   will be able to boot your system from floppy and correct the problem.
  1191.  
  1192.   More information on configuring LILO is given below.
  1193.  
  1194.   The postinstallation procedure will also take you through several menu
  1195.   items allowing you to configure your system. This includes specifying
  1196.   your modem and mouse device, as well as your time zone. Just follow
  1197.   the menu options.
  1198.  
  1199.  
  1200.  
  1201.  
  1202.   4.6.  Booting your new system
  1203.  
  1204.   If everything went as planned, you should be able to boot your Linux
  1205.   boot floppy (not the Slackware installation floppy, but the floppy
  1206.   created after installing the software). Or, if you installed LILO, you
  1207.   should be able to boot from the hard drive.  After booting, login as
  1208.   root. Congratulations! You have your very own Linux system.
  1209.  
  1210.   If you are booting using LILO, try holding down shift or control
  1211.   during boot. This will present you with a boot prompt; press tab to
  1212.   see a list of options. In this way you can boot Linux, MS-DOS, or
  1213.   whatever directly from LILO.
  1214.  
  1215.   After booting your system and logging in as root, one of the first
  1216.   things you should do is create an account for yourself.  The adduser
  1217.   command may be used for this purpose. For example,
  1218.  
  1219.  
  1220.        # adduser
  1221.        Login to add (^C to quit): ebersol
  1222.        Full Name: Norbert Ebersol
  1223.        GID [100]: 100
  1224.        UID [501]: 501
  1225.        Home Directory [/home/ebersol]: /home/ebersol
  1226.        Shell [/bin/bash]: /bin/bash
  1227.        Password [ebersol]: new.password
  1228.  
  1229.        Information for new user [ebersol]:
  1230.        Home directory: [/home/ebersol]  Shell: [/bin/bash]
  1231.        Password: [new.password]  UID: [502] GID:[100]
  1232.        Is this correct? [y/n]: y
  1233.  
  1234.  
  1235.  
  1236.  
  1237.   adduser will prompt you for various parameters, such as the username,
  1238.   full name, GID (group ID), UID (user ID), and so on. For the most part
  1239.   you can use the defaults. If you're unfamiliar with creating users on
  1240.   a UNIX system, I strongly suggest getting a book on UNIX systems
  1241.   administration. It will help you greatly in setting up and using your
  1242.   new system.
  1243.  
  1244.   You can now login as the new user. You can use the keys Alt-F1 through
  1245.   Alt-F8 to switch between virtual consoles, which will allow you to
  1246.   login multiple times from the console. The passwd command can be used
  1247.   to set the passwords on your new accounts; you should set a password
  1248.   for root and any new users that you create.
  1249.  
  1250.   Also, the hostname of your machine is set at boot time in the file
  1251.   /etc/rc.d/rc.M. You should edit this file (as root) to change the
  1252.   hostname of the machine.  You should edit the lines in this file which
  1253.   run the commands hostname or hostname_notcp. (The default hostname is
  1254.   slackware.) You may also wish to edit the domainname commands in this
  1255.   file, if you are on a TCP/IP network.
  1256.  
  1257.   Obviously, there are many more things to setup and configure. A good
  1258.   book on UNIX systems administration should help. (I suggest Essential
  1259.   Systems Administration from O'Reilly and Associates.)  You will pick
  1260.   these things up as time goes by. You should read various other Linux
  1261.   HOWTOs, such as the NET-2-HOWTO and Printing-HOWTO, for information on
  1262.   other configuration tasks.
  1263.  
  1264.   After that, the system is all yours... have fun!
  1265.  
  1266.  
  1267.  
  1268.   5.  Configuring LILO
  1269.  
  1270.   LILO is a boot loader, which can be used to select either Linux, MS-
  1271.   DOS, or some other operating system at boot time. If you install LILO
  1272.   as the primary boot loader, it will handle the first-stage booting
  1273.   process for all operating systems on your drive. This works well if
  1274.   MS-DOS is the only other operating system that you have installed.
  1275.   However, you might be running OS/2, which has it's own Boot Manager.
  1276.   In this case, you want OS/2's Boot Manager to be the primary boot
  1277.   loader, and use LILO just to boot Linux (as the secondary boot
  1278.   loader).
  1279.  
  1280.   The Slackware installation procedure allows you to install and
  1281.   configure LILO. However, this method doesn't seem to be smart enough
  1282.   to handle several peculiar situations. It might be easier in some
  1283.   cases to configure LILO by hand.
  1284.  
  1285.   In order to set up LILO for your system, just edit the file
  1286.   /etc/lilo/config. Below we present an example of a LILO configuration
  1287.   file, where the Linux root partition is on /dev/hda2, and MS-DOS is
  1288.   installed on /dev/hdb1 (on the second hard drive).
  1289.  
  1290.  
  1291.        # Tell LILO to install itself as the primary boot loader on /dev/hda.
  1292.        boot = /dev/hda
  1293.        # The boot image to install; you probably shouldn't change this
  1294.        install = /etc/lilo/boot.b
  1295.        # Do some optimization. Doesn't work on all systems.
  1296.        compact
  1297.  
  1298.        # The stanza for booting Linux.
  1299.        image = /vmlinuz       # The kernel is in /vmlinuz
  1300.          label = linux        # Give it the name "linux"
  1301.          root = /dev/hda2     # Use /dev/hda2 as the root filesystem
  1302.          vga = ask            # Prompt for VGA mode
  1303.  
  1304.        # The stanza for booting MS-DOS
  1305.        other = /dev/hdb1      # This is the MS-DOS partition
  1306.          label = msdos        # Give it the name "msdos"
  1307.          table = /dev/hdb     # The partition table for the second drive
  1308.  
  1309.  
  1310.  
  1311.  
  1312.   Once you have edited the /etc/lilo/config file, run /etc/lilo/lilo as
  1313.   root. This will install LILO on your drive. Note that you must rerun
  1314.   /etc/lilo/lilo anytime that you recompile your kernel (something that
  1315.   you don't need to worry about just now, but keep it in mind).
  1316.  
  1317.   You can now reboot your system from the hard drive. By default LILO
  1318.   will boot the operating system listed first in the configuration file,
  1319.   which in this case is Linux. In order to bring up a boot menu, in
  1320.   order to select another operating system, hold down shift or ctrl
  1321.   while the system boots; you should see a prompt such as
  1322.  
  1323.        Boot:
  1324.  
  1325.  
  1326.   Here, enter either the name of the operating system to boot (given by
  1327.   the label line in the configuration file; in this case, either linux
  1328.   or msdos), or press tab to get a list.
  1329.  
  1330.   Now let's say that you want to use LILO as the secondary boot loader;
  1331.   if you want to boot Linux from OS/2's Boot Manager, for example.  In
  1332.   order to boot a Linux partition from OS/2 Boot Manager, unfortunately,
  1333.   you must create the partition using OS/2's FDISK (not Linux's), and
  1334.   format the partition as FAT or HPFS, so that OS/2 knows about it.
  1335.   (That's IBM for you.)
  1336.  
  1337.   In order to have LILO boot Linux from OS/2 BM, you only want to
  1338.   install LILO on your Linux root filesystem (in the above example,
  1339.   /dev/hda2). In this case, your LILO config file should look something
  1340.   like:
  1341.  
  1342.  
  1343.        boot = /dev/hda2
  1344.        install = /etc/lilo/boot.b
  1345.        compact
  1346.  
  1347.        image = /vmlinuz
  1348.          label = linux
  1349.          root = /dev/hda2
  1350.          vga = ask
  1351.  
  1352.  
  1353.  
  1354.  
  1355.   Note the change in the boot line. After running /etc/lilo/lilo you
  1356.   should be able to add the Linux partition to Boot Manager. This mecha-
  1357.   nism should work for boot loaders used by other operating systems as
  1358.   well.
  1359.  
  1360.  
  1361.   6.  Miscellaneous
  1362.  
  1363.   I don't like to be biased towards the Slackware release, however, in
  1364.   order to document multiple releases of Linux, this file would be much,
  1365.   much longer. It is simpler and more coherent to cover the specific
  1366.   instructions for a single release of Linux. The book Linux
  1367.   Installation and Getting Started currently includes general
  1368.   installation instructions which should be applicable to ``any''
  1369.   distribution of Linux. However, because the installation procedures
  1370.   are so varied, covering them all would be very confusing both to
  1371.   myself and to the reader.
  1372.  
  1373.   The basic concepts in this document still hold, no matter what release
  1374.   of Linux you choose. For example, all releases require you to run
  1375.   fdisk, and all of them (to my knowledge) include some kind of
  1376.   installation menu similar to the setup program.  If you choose to use
  1377.   a release of Linux other than Slackware, the READMEs and installation
  1378.   instructions that come with that release should be easy to understand
  1379.   in the context of the material presented here.
  1380.  
  1381.   If you would like a more complete discussion of Linux installation
  1382.   (instead of the "quick" examples given here), read the book Linux
  1383.   Installation and Getting Started, from sunsite.unc.edu in
  1384.   /pub/Linux/docs/LDP.  This book includes a complete discussion of how
  1385.   to obtain and install Linux, as well as a basic UNIX and systems
  1386.   administration tutorial for new users.
  1387.  
  1388.   Please mail me at mdw@sunsite.unc.edu if any part of this document is
  1389.   confusing or incorrect. I depend on feedback from readers in order to
  1390.   maintain this document! I also like to help answer questions about
  1391.   Linux installation, if you have any.
  1392.  
  1393.   I'd like to thank Patrick Volkerding for his work on the Slackware
  1394.   distribution and assistance in preparing this document.
  1395.  
  1396.   Best of luck with your new Linux system!
  1397.  
  1398.   Cheers, mdw
  1399.